package net.xiezihao.fuxiclient.demo.service;

import net.xiezihao.fuxiclient.demo.fallback.FallBackDemo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "api-gateway",fallback = FallBackDemo.class)
public interface MyFeignClient {
    @GetMapping("/ps/api/v1/product/find")
    String findById(@RequestParam(value = "id") int id);
    @GetMapping("/us/userService/get")
    String getUser();
}
